package com.gxa.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.gxa.entity.Storage;
import com.gxa.mapper.StorageMapper;
import com.gxa.service.StorageService;
import org.springframework.stereotype.Service;

@Service
public class StorageServiceImpl extends ServiceImpl<StorageMapper, Storage> implements StorageService {

    @Override
    public void decrease(Long productId, Integer count) {
        baseMapper.update(productId, count);
    }
}
